package com.xms.queryview.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.xms.datacore.service.IFinderService;
import com.xms.queryview.entity.QueryView;

import java.util.List;
import java.util.UUID;

/**
 * <p>
 * IQueryviewFinderService
 * </p>
 *
 * @author migo
 * @since 2021/9/3
 */
public interface IQueryViewFinderService extends IFinderService<QueryView> {

    QueryView getDefaultView(UUID entityId);

    QueryView getDefaultView(String entityName);

    List<QueryView> getByEntityId(UUID entityId);

    List<QueryView> getByEntityName(String entityName);

    List<QueryView> getAuthorizedByEntityId(UUID entityId);

    List<QueryView> getAuthorizedByEntityName(String entityName);

    List<QueryView> getAuthorized(LambdaQueryWrapper<QueryView> queryWrapper);

    List<QueryView> getAuthorizations();
}
